<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
<html>
    <head>
        <title>
            SiDatRa - Admin
        </title>
        <link rel="stylesheet" href="<? echo base_url() ?>style/form.css"/>
    </head>
    <body>
        <div id="container">

            <div id="content" align="center">
                <!--
                    disini tabel
                    data yang dibutuhkan
                        - data semua user
                -->
                <table border="1">
                    <tr>
                        <th>
                            no
                        </th>
                        <th>
                            Nama
                        </th>
                        <th>
                            Nomor HP
                        </th>
                        <th>
                           aksi
                        </th>
                    </tr>
                    <?php
                    for($i=0;$i<count($customers);$i++)
                    {
                        ?>
                    <tr>
                        <td>
                            <?php echo $i+1 ?>
                        </td>
                        <td>
                            <?php echo $customers[$i]->nama ?>
                        </td>
                        <td>
                            <?php echo $customers[$i]->no_hp ?>
                        </td>
                        <td>
                            <a href="<? echo base_url()?><? echo index_page() ?>/pegawai/customer/edit/<?php echo $customers[$i]->ID ?>">edit</a>
                            <a href="<? echo base_url()?><? echo index_page() ?>/pegawai/customer/delete/<?php echo $customers[$i]->ID ?>">delete</a>
                        </td>
                    </tr>
                    <?php
                    }
                    ?>
                </table>
                <a href="<? echo base_url()?><? echo index_page() ?>/pegawai/customer/add">add new customer</a>
            </div>
        </div>
    </body>
</html>
